package com.ssm.dao;

import com.ssm.pojo.Provider;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface ProviderMapper {
    List<Provider> getProviderList(@Param("proCode") String proCode, @Param("proName") String proName,@Param("offset") int offset, @Param("pageSize") int pageSize);
    Integer getProviderCount(@Param("proCode") String proCode, @Param("proName") String proName);
    int addProvider(Provider provider);
    Provider getProviderByProCode(@Param("proCode") String proCode);
    Provider getProviderById(@RequestParam("id") Integer id);
    int modifyProvider(Provider provider);
    int deleteProviderById(@Param("id") Integer id);
    List<Provider> getAllProvider();
}
